package me.zhengjie.vo.freeze;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class FreezeNestVo {

    private String containerCode;

    private List<String> itemBarCodeList;

    public void setItemBarCode(String itemBarCode) {
        if (this.itemBarCodeList == null) {
            this.itemBarCodeList = new ArrayList<>();
        }
        this.itemBarCodeList.add(itemBarCode);
    }
}
